package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * ClassName: AlbumUpdateDTO
 * Package: cn.tedu.csmall.product.pojo.dto
 * Description 修改相册基本数据的DTO类
 *
 * @version 0.0.1
 * @Author: 大傻
 * @Create:2022/12/7
 */
@Data
public class AlbumUpdateDTO {
    /**
     * 相册名称
     */
    @ApiModelProperty(value = "相册名称", required = true)
    @NotNull(message = "修改相册失败，必须提交相册名称！")
    @NotEmpty(message = "修改相册失败，必须提交相册名称！")
    private String name;

    /**
     * 相册简介
     */
    @ApiModelProperty(value = "相册简介", required = true)
    @NotNull(message = "修改相册失败，必须提交相册简介！")
    private String description;

    /**
     * 排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true)
    @NotNull(message = "修改相册失败，必须提交排序序号！")
    @Range(max = 255, message = "修改相册失败，排序序号必须是0~255之间的值！")
    private Integer sort;
}
